class Solution {
public:
    int getSum(int a, int b) {
        int tmp = 0, plus = 0;  // plus 是进位
        while(b)
        {
            tmp = a ^ b;
            plus = (a & b) << 1;
            a = tmp, b = plus;
        }

        return a;
    }
};